import PropTypes from 'prop-types';
import React from 'react';

const Ad = props => {
  return (
      <div className="ad">
        <a href={props.url} target="_blank" rel="noreferrer noopener">
          <img
            className="img-responsive"
            src={props.imageUrl}
            alt="图片丢失"
          />
        </a>
        <small>Letters 广告</small>
      </div>
  )
}

Ad.propTypes = {
  imageUrl: PropTypes.string,
  url: PropTypes.string,
}

export default Ad;
